require 'rubygems'
require 'test/unit'
require 'config_reader'
require 'mocha'
class TestConfigReader < Test::Unit::TestCase
  def test_we_read_in
    SharedFile.stubs(:fetch_content).returns(mock())
    reader = ConfigReader.new('agent_config.yml')
    assert_equal('/path/to/config', reader.shared_files.first.path)
    assert_equal('/another/config', reader.shared_files.last.path)
  end
end
